home *** CD-ROM | disk | FTP | other *** search
- Subject: Cursor & examples
- Sent: 6/27/96 10:54 AM
- Received: 6/27/96 11:22 AM
- From: Brian Arnold, arnold@lumina.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Howdy ODF Interests,
-
- When I first started with ODF R1, I used the Container PartMaker template,
- but have since switched to the Sketch PartMaker template (so'z I get shapes
- done for me). When making the switch, I noticed Container's View class and
- Sketch's View class differ in how to handle the cursor.
-
- Sketch calls inherited first, and then checks if the last active frame is
- its common frame, and uses a cross hair cursor if it thinks it's going to
- be sketching (tool).
-
- Container checks if it's frame's window is active and sets to arrow if
- false, then calls inherited (this check seems unnecessary since it appears
- that OpenDoc sets the cursor anyway). If inherited didn't set the cursor
- and there's a selection, it has a switch statement for types of cursors
- corresponding to handles of the [proxy] selection, and checks to use the
- open hand cursor if a drag operation is possible. I added a final check
- where it sets the cursor to the appropriate tool (since I have tools like
- Draw).
-
- I'm curious to know which one is being more thorough or redundant. My
- suspicion is that Container is doing more work, and therefore I'm leaning
- towards keeping that, but I figure I should ask for an opinion first.
-
- Also, a note about the Container part template: it names the default part
- file "Part.h/cpp", which hides the OpenDoc "Part.h" file (handily also in
- the search path, but through the system path, so it may not be a problem
- unless you treat system paths like user paths).
-
- - Brian
-
- ---------------------------------------------------------------
- Brian Arnold arnold@lumina.com
- Director of Software Development
- Lumina Decision Systems, Inc. http://www.lumina.com/
-
-